import request from '../../util/axios'

// 分页查询部门机构
export const getDepartmentList = (data) => request({
  url: '/yuyi-user-boot/api/sys/sysOrg/paging',
  method: 'post',
  data
})

// 新增部门机构
export const addDepartmentList = (data) => request({
  url: '/yuyi-user-boot/api/sys/sysOrg',
  method: 'post',
  data
})

// 编辑部门机构
export const editDepartmentList = (data) => request({
  url: '/yuyi-user-boot/api/sys/sysOrg',
  method: 'put',
  data
})

// 删除部门机构
export const delDepartmentList = (data) => request({
  url: '/yuyi-user-boot/api/sys/sysOrg',
  method: 'delete',
  data
})
